ImDead = false
local function renderdeath( um )
	ImDead = um:ReadBool()
end
usermessage.Hook("renderdeath", renderdeath) 

local function RenderingDeath()
	if ImDead then
		local blackandwhite = {}
		blackandwhite[ "$pp_colour_addr" ] = 0
		blackandwhite[ "$pp_colour_addg" ] = 0
		blackandwhite[ "$pp_colour_addb" ] = 0
		blackandwhite[ "$pp_colour_brightness" ] = 0
		blackandwhite[ "$pp_colour_contrast" ] = 1
		blackandwhite[ "$pp_colour_colour" ] = 0
		blackandwhite[ "$pp_colour_mulr" ] = 0
		blackandwhite[ "$pp_colour_mulg" ] = 0
		blackandwhite[ "$pp_colour_mulb" ] = 0
		DrawColorModify( blackandwhite )
		DrawMotionBlur( 0.06, 0.89, 0.10)
	end
end
hook.Add( "RenderScreenspaceEffects", "RenderingDeath", RenderingDeath ) 